package com.mego.weblink.utils;

import java.util.HashMap;
import java.util.Map;

import zuo.biao.library.interfaces.OnHttpResponseListener;
import zuo.biao.library.manager.HttpManager;


public class HttpRequest {

    public static final String URL_BASE = "http://eggi.megowx.com/";

    /**
     * http://eggi.megowx.com/api/Prodoction/getweblink?guid=1224233
     */
    public static void getweblink(String guid, final int requestCode, final OnHttpResponseListener listener) {
        Map<String, Object> request = new HashMap<>();
        request.put("guid", guid);

        HttpManager.getInstance().get(request, "http://eggi.megowx.com/api/Prodoction/getweblink", requestCode, listener);
    }

    /**获取需要播报的鸽环编号
     * http://aps.acciot.com.tw/api/feige/ringrecordsmps?fromtime=1599810822
     */
    public static void ringrecordsmps(long fromtime, final int requestCode, final OnHttpResponseListener listener) {
        Map<String, Object> request = new HashMap<>();
        request.put("fromtime", fromtime);
        HttpManager.getInstance().get(request, "http://aps.acciot.com.tw/api/feige/ringrecordsmps", requestCode, listener);
    }


}